<!--<?php
if($str[0]==0)$str1='checked';
if($str[0]==1)$str2='checked';
if($str[0]=='-1'){
$str3='checked';
$up=$str[1];
}
if($str[2]==0)$str4='checked';
if($str[2]==1)$str5='checked';
if($str[2]=='-1'){
$str6='checked';
$down=$str[3];
}
print<<<GH
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>种子来源网站</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="templates/msystem/ljy.css" rel="stylesheet" type="text/css" />
<link href="ljy.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript"> 
function show(a,b,c) 
{ 
	document.getElementById(a).style.display = ""; 
	document.getElementById(b).style.display = "none";
	document.getElementById(c).style.display = "none";
} 
function setbox(id,value,able){
	document.getElementById(id).value = value;
	document.getElementById(id).disabled=able;  
}
</script> 
</head>

<body>
<div  id="toppath">ACS限速</div>
<form name="form" method="post" action="acsstint.php">
<input type="hidden" name="action" value="set" /> 
<input type="hidden" name="sum" value="$sum" /> 
	<table width="100%" border="0" cellpadding="0" cellspacing="0">
		<tr>
		  <th>设置ACS流量</th>
		  <th colspan="3">选择</th>
		  <th>目前ACS端口数为：{$sum}</th>
	  </tr>
		<tr>
		<td width="20%" class="table_left">上传流量</td>
		<td width="10%" class="table_left">不限速<input name="statusup" type="radio" value="0" onclick="show('wf','bf','mf');setbox('up',0,true);" $str1/></td>
		<td width="10%" class="table_left">限速<input name="statusup" type="radio" value="1" onclick="show('bf','mf','wf');setbox('up',1,true);" $str2/></td>
		<td width="10%" class="table_left">定速<input name="statusup" type="radio" value="-1" onclick="show('mf','bf','wf');setbox('up',{$str[1]},false);" $str3/></td>
		<td width="50%"><input id="up" name="up" type="text" class="inputtext" size="20" value="$up"/>&nbsp;<span id="wf" style="display:'none';"></span><span id="bf" style="display:'none';">kb/s</span><span id="mf" style="display:'none';">Mb/s</span></td>
		</tr>
		<tr>
		<td width="20%" class="table_left">下载流量</td>
		<td width="10%" class="table_left">不限速<input name="statusdown" type="radio" value="0" onclick="show('ef','df','cf');setbox('down',0,true);" $str4/></td>
		<td width="10%" class="table_left">限速<input name="statusdown" type="radio" value="1" onclick="show('cf','df','ef');setbox('down',1,true);" $str5/></td>
		<td width="10%" class="table_left">定速<input name="statusdown" type="radio" value="-1" onclick="show('df','cf','ef');setbox('down',{$str[3]},false);" $str6/></td>
		<td width="50%"><input id="down" name="down" type="text" class="inputtext" size="20" value="$down"/>&nbsp;<span id="ef" style="display:'none';"></span><span id="cf" style="display:'none';">kb/s</span><span id="df" style="display:'none';">Mb/s</span></td>
		</tr>
  </table>
  <div id="pagediv" align="center">
   <input style="background:#FCE898; border:#CCCCCC solid 1px; width:60px; padding-top:5px;" type="submit"  name="msubmit"  value="提 交" />
   　 
   <input style="background:#FCE898; border:#CCCCCC solid 1px; width:60px; padding-top:5px;" name="reset" type="reset" value="重置" />
</div>
</form>
</body>
</html>
<!--
GH;
?>-->


 	
 	
 	
 	
 	
 	
 	
 	
 	
 	
 	
 	
 	
 	
 	
 	
 	
 	
 	
 	
 	
 	
 	
 	 